local Lang = {}

local LangTemplate = {}
LangTemplate["not_in_action_round"] = "未到行动回合！"
LangTemplate["fight_win_tip"] = "战斗胜利！"
LangTemplate["fight_lose_tip"] = "战斗失败！"
LangTemplate["res_load_failed"] = "资源加载失败！"
LangTemplate["round_text"] = "第%d回合"
LangTemplate["login_empty_tip"] = "账号或密码不能为空"
LangTemplate["connected_server_failed"] = "连接服务器失败"
LangTemplate["connect_server_dis"] = "服务器异常断开"
LangTemplate["sys_tip_title"] = "系统提示"
LangTemplate["connected_server_none"] = "未连接到服务器"
LangTemplate["common_lv"] = "#level#级"
LangTemplate["none_equipment"] = "暂未装备"
LangTemplate["upgarde_success"] = "升级成功"
LangTemplate["cost_not_enougth"] = "材料不足"
LangTemplate["level_is_to_max"] = "已达等级上限"
LangTemplate["lang_cost_money"] = "#num#银币"
LangTemplate["lang_have_money"] = "银币：#num#"
LangTemplate["lang_num_wan"] = "#num#万"
LangTemplate["lang_hero_battle_success"] = "上阵成功"
LangTemplate["lang_hero_battle_fail"] = "布阵位已满"
LangTemplate["lang_hero_add_exp"] = "武将经验+#exp#"
LangTemplate["lang_hero_un_battle"] = "下阵成功"
LangTemplate["lang_hero_change_success"] = "更换成功"
LangTemplate["lang_shop_tab_1"] = "商店-道具"
LangTemplate["lang_shop_tab_2"] = "商店-装备"
LangTemplate["lang_shop_tab_3"] = "商店-法宝"
LangTemplate["lang_shop_buy_tip"] = "是否花费#cost#购买#name#"
LangTemplate["lang_shop_buy_success"] = "购买成功"
LangTemplate["lang_shop_buy_fail"] = "#name#不足"
LangTemplate["lang_enter_fight_tip"] = "进入战斗"
LangTemplate["lang_exit_fight_tip"] = "战斗结束"
LangTemplate["lang_round_action_time"] = "行动结束#sec#秒"
LangTemplate["lang_round_count"] = "第#count#回合"
LangTemplate["lang_package_title_1"] = "道具"
LangTemplate["lang_package_title_2"] = "装备"
LangTemplate["lang_package_title_3"] = "武将"
LangTemplate["lang_package_title_4"] = "法宝"
LangTemplate["lang_magickey_empty"] = "暂未装备法宝"
LangTemplate["lang_equip_success"] = "装备成功"
LangTemplate["lang_unload_success"] = "卸下成功"
LangTemplate["lang_level_show"] = "等级：#level#"
LangTemplate["lang_unknow_error"] = "未知错误"
LangTemplate["lang_tuijiandengji"] = "推荐等级：#level#"
LangTemplate["lang_absorb_hurt"] = "吸收"
LangTemplate["lang_element_1"] = "火"
LangTemplate["lang_element_2"] = "水"
LangTemplate["lang_element_3"] = "雷"
LangTemplate["lang_element_0"] = "物"
LangTemplate["lang_tip_please_input_name"] = "请输入玩家名称"
LangTemplate["lang_chat_mini_msg"] = "#name#：#msg#"
LangTemplate["lang_team_group_target"] = "组队目标-#name#"
LangTemplate["lang_team_group_invite_tips"] = "#name#邀请你组队进入#targetName#"
LangTemplate["lang_team_groun_enter_fail"] = "您不是队长！"
LangTemplate["lang_monster_fighting_text"] = "#name#战斗中..."

function Lang.get(key, params)
    local text = LangTemplate[key]
    if text then
        if params and type(params) == "table" then
            for key, value in pairs(params) do
                text = string.gsub(text, "#" .. key .. "#", value)
            end
        end
        return text
    end
    return key
end

return Lang
